package net.studio.simpletetris.intf;

import android.graphics.Canvas;

public interface IGame {

	void setGameListener(IGameListener listener);
	
	IGameListener getGameListener();
	
	void play();
	
	void stop();
	
	void pause();
	
	void resume();
	
	void reset();
	
	boolean isRunning();
	
	void move(int direct);
	
	void moveExpress(int direct);
	
	void rotate(int direction);
	
	void drawBlock(IGameView view, Canvas canvas, IBlock block);
	
	void drawField(IGameView view, Canvas canvas, IField field);
	
	void drawFigure(IGameView view, Canvas canvas, IFigure fiqure);
	
	IGameView getGameView();
	
	IGameView getNextGameView();
	
}
